import React, { Component } from 'react';
import {
  StyleSheet,
  View,
  Text,
  Platform,
  Image,
  Dimensions,
  ConsoleModule,
  Modal,
  TextInput,
} from '@hippy/react';

import HuodongWebView from '../components/huodong/HuodongWebView';

const styles = StyleSheet.create({
  container: {
    backgroundColor: "#4377dd",
  },
  bgHeader: {
    height: 44,
    flexDirection: 'row',
    justifyContent: 'center',
    alignItems: 'center',
  },
  navTitle: {
    fontSize: 22,
    fontWeight: 'bold',
    color: 'white',
  },
});

export default class HuodongPage extends Component {
  constructor(props) {
    super(props);

  }

  render() {
    return (
      <View style={{flex: 1}}>
        <View style={[styles.container, { height: Dimensions.get('screen').statusBarHeight + 44}]}>
          <View
            style={{ height: Dimensions.get('screen').statusBarHeight }}
          />
          <View style={styles.bgHeader}>
            <Text style={styles.navTitle}>WebView示例</Text>
          </View>
        </View>
        <View style={{flex: 1}}>
          <HuodongWebView />
        </View>
      </View>
    );
  }
}
